<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>timer button</title>
  <link rel="stylesheet" href="./dlg-goto.css">
</head>
<body>
<input type="button" id="add" value="弹出对话框">
<div id="test"></div>
<!--
<div class="notepad-dlg-goto">
  <div class="notepad-dlgbox">
    <div class="titlebar">
      <p class="title">转到指定行</p>
      <span class="close-btn">×</span>
    </div>
    <div class="main">
      <label>行号(<u>L</u>):</label>
      <br>
      <input class="txt-line-num" type="text" autofocus>
      <br>
      <input class="btn-goto" type="button" value="转到">
      <input class="btn-cancel" type="button" value="取消">
    </div>
  </div>
</div>
 -->
<script src="//apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="//cdn.bootcss.com/jqueryui/1.12.1/jquery-ui.min.js"></script>
<script src="./dlg-goto.js"></script>
<script>
$(() => {
  let $btnAdd = $('#add');
      
  $btnAdd.click(() => {
    $gotoDlg.show({
      //container: '#test',
      //title: '发送验证码',
      //onClick: function() {console.log('timer button click!');}
    });
  });

});
</script>
</body>
</html>
